/* ============ 气泡卡片容器 ============ */

.popover {
    position: fixed;
    background: white;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    max-width: 400px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.popover.active {
    opacity: 1;
    pointer-events: auto;
}

/* ============ 气泡箭头 ============ */

.popover-arrow {
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 1px;
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.08);
}

.popover-top .popover-arrow {
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
}

.popover-bottom .popover-arrow {
    top: -4px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
}

.popover-left .popover-arrow {
    right: -4px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.popover-right .popover-arrow {
    left: -4px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

/* ============ 气泡内容 ============ */

.popover-inner {
    padding: 12px 16px;
}

.popover-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.popover-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============ 响应式 ============ */

@media (max-width: 768px) {
    .popover {
        max-width: 300px;
    }

    .popover-inner {
        padding: 10px 12px;
    }

    .popover-title {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .popover-content {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .popover {
        max-width: 250px;
    }

    .popover-inner {
        padding: 8px 10px;
    }

    .popover-title {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .popover-content {
        font-size: 11px;
    }
}
